/**
 * File BasicControlAgentCB.java created by Pablo Díaz Fernández
 * on 06/04/2012 for the project supply-chain-simulator
 */
package org.lsk.pfc.scsim.model.behaviour;

import org.apache.log4j.Logger;

/**
 * Basic cyclic behabiour for all the control agents.
 * 
 * @author Pablo Díaz Fernández
 * 
 */
public final class BasicControlAgentCB extends ControlAgentCB {

	/**
	 * Serial version ID.
	 */
	private static final long serialVersionUID = 3523344517781282740L;

	/**
	 * Creates the logger for the class.
	 * 
	 * @see org.lsk.pfc.scsim.model.behaviour.ControlAgentCB#createLogger()
	 */
	@Override
	protected void createLogger() {
		super.setLogger(Logger.getLogger(this.getClass()));
	}

	@Override
	protected void process(final long tick) {
		super.getLogger()
		        .debug("[" + myAgent.getName() + "] Simulate process ");
		// System.out.println("[" + myAgent.getName() + "] Simulate process ");
	}

}
